Ext.Loader.setPath({
	'Ext.ux': './js-external/ux'
});
Ext.require([
     'Ext.ux.GroupTabPanel'
]);
Ext.require([
      'Ext.ux.LiveSearchGridPanel'
]);
Ext.tip.QuickTipManager.init();
var admin_panel = {	
		
		viewport: null,
		centerContainer: null,
		groupTabs: null,
		
		initialize: function(viewport, centerContainer) {	
			Ext.suspendLayouts();
			
			this.viewport = viewport;
			this.centerContainer = centerContainer;
			this.centerContainer.layout = 'fit';
			
			places_tab.initialize();
			concerts_tab.initialize();
			sports_tab.initialize();
			espectaculos_tab.initialize();
			theatre_tab.initialize();
			this.groupTabs = Ext.create('Ext.ux.GroupTabPanel', {
				activeGroup: 0,
				id:'grouppanel',
				items: [places_tab.getTab(), concerts_tab.getTab(), sports_tab.getTab(),
				        espectaculos_tab.getTab(), theatre_tab.getTab()]
			});
			
			this.centerContainer.add(this.groupTabs);
			this.centerContainer.doLayout();
			
			Ext.resumeLayouts(true);
		}

};